

int combine(int* arr1, int m, int* arr2, int n)
{
	memcpy(arr1 + m, arr2, sizeof(int) * n);
	for (int i = 0; i < m + n - 1; i++)
	{
		for (int j = 0; j < m + n - i - 1; j++)
		{
			if (arr1[j] > arr1[j + 1])
			{
				int tmp = arr1[j];
				arr1[j] = arr1[j + 1];
				arr1[j + 1] = tmp;
			}
		}
	}
	return arr1;
}

